package com.ujcms.cms.ext.domain;

import com.ujcms.cms.ext.domain.base.ModuleBase;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;

public class Module extends ModuleBase implements Serializable {
    private static final long serialVersionUID = 1L;

    public static final String NOT_FOUND = "Module not found. ID: ";

    private List<ModuleContent> list;

    public List<ModuleContent> getList() {
        return Optional.ofNullable(list).orElse(new ArrayList<>());
    }

    public void setList(List<ModuleContent> list) {
        this.list = list;
    }
}